package spindles.gwt.client;

import java.util.Comparator;
import java.util.Map;
import java.util.Map.Entry;

public class ThresholdComparator implements Comparator {

	public int compare(Object lGroup, Object rGroup) {
		Entry group1 = (Map.Entry)lGroup;
		Entry group2 = (Map.Entry)rGroup;
		
		String groupName1 = (String)group1.getKey();
		String groupName2 = (String)group2.getKey();
		
		return groupName1.compareTo(groupName2);
		
	}
	

}
